﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="DepartmentMan.ascx.cs" Inherits="AdminX_Company_DepartmentMan" %>
<%@ Register Src="../../Common/Alert.ascx" TagName="Alert" TagPrefix="uc1" %>

<div>
    <uc1:Alert ID="Alert1" runat="server" />
</div>
<div>
    <asp:Label ID="lblLanguage" runat="server" Width="70px" CssClass="text" ></asp:Label>
    <asp:DropDownList ID="ddlLanguage" runat ="server"  CssClass ="boxlonger" 
        AutoPostBack="true" 
        onselectedindexchanged="ddlLanguage_SelectedIndexChanged" ></asp:DropDownList>
</div>
<div>
    <asp:Label ID="lblOffice" runat="server" Width="70px" CssClass="text" ></asp:Label>
    <asp:DropDownList ID="ddlOffice" runat ="server"  CssClass ="boxlonger" 
        AutoPostBack="true" onselectedindexchanged="ddlOffice_SelectedIndexChanged" ></asp:DropDownList>
</div>
<div style ="float:right; padding-bottom:15px ">
  

    <asp:Button ID="btnAddNew" runat="server" Text ="Thêm mới" onclick="btnAddNew_Click" />&nbsp;&nbsp;
    <asp:Button ID="btnBack" runat="server" Text ="Quay lại" 
        onclick="btnBack_Click"  />
</div>
<div>
    <asp:Label ID="lblTotalRecord" runat="server" CssClass="text" Font-Bold="true"></asp:Label>
   
</div>
<div>
    <asp:DataGrid ID="dtgAdv" runat="Server" AutoGenerateColumns="False" CellPadding="3"   
       CssClass="grdContainer"  BackColor="White"  BorderColor="#999999" BorderStyle="None" BorderWidth="1px" GridLines="Vertical" OnItemCommand="dtgAdv_ItemCommand" OnItemDataBound="dtgAdv_ItemDataBound">
        <HeaderStyle CssClass="grdHeader" BackColor="#698DAD" Font-Bold="True" ForeColor="White"  />
        <AlternatingItemStyle CssClass="grdAlterItem" BackColor="#DCDCDC" />
        <ItemStyle CssClass="grdItem" BackColor="#EEEEEE" ForeColor="Black" />
        <EditItemStyle CssClass="grdEditItem" />
        <SelectedItemStyle CssClass="grdSelectItem" Font-Bold="True" BackColor="#008A8C" ForeColor="White" />
        <Columns>
                <asp:TemplateColumn  HeaderText="STT" >
                    <HeaderStyle Width="30px" ></HeaderStyle >
                    <ItemTemplate>
                         <%# Container.ItemIndex + 1 %>
                    </ItemTemplate>
                </asp:TemplateColumn> 
                 <asp:TemplateColumn  HeaderText="Phòng ban">
                     <HeaderStyle  ></HeaderStyle >
                    <ItemTemplate>
                        <asp:Label ID="lblDepartment" runat="server"></asp:Label>
                    </ItemTemplate>
                </asp:TemplateColumn> 
                 <asp:TemplateColumn  HeaderText="Trực thuộc Văn phòng">
                     <HeaderStyle  Width="200px" ></HeaderStyle >
                    <ItemTemplate>
                        <asp:Label ID="lblOffice" runat="server"></asp:Label>
                    </ItemTemplate>
                </asp:TemplateColumn> 
                <asp:TemplateColumn  HeaderText="Email">
                     <HeaderStyle  Width="150px" ></HeaderStyle >
                    <ItemTemplate>
                    <asp:Label ID="lblEmail" runat="server"></asp:Label>
           
                    </ItemTemplate>
                </asp:TemplateColumn> 
                 <asp:TemplateColumn  HeaderText="Điện thoại">
                     <HeaderStyle Width="120px"></HeaderStyle >
                    <ItemTemplate>
                        <asp:Label ID="lblTel" runat="server"></asp:Label>
                    </ItemTemplate>
                </asp:TemplateColumn> 
              
                <asp:TemplateColumn  HeaderText="Tùy chọn">
                    <HeaderStyle Width="70px"  ></HeaderStyle >
                    <ItemTemplate>
                      
                       <asp:LinkButton ID="lnkEdit" runat="server" Text="Sửa" CommandName="Edit" ForeColor = "green" ></asp:LinkButton> |
                      <asp:LinkButton ID="lnkDelete" runat="server" Text="Xóa" CommandName="Delete" CausesValidation="false" ForeColor="red"></asp:LinkButton>
                    </ItemTemplate>
                </asp:TemplateColumn>
        </Columns>
           <FooterStyle BackColor="#CCCCCC" ForeColor="Black" />
           <PagerStyle BackColor="#999999" ForeColor="Black" HorizontalAlign="Center" Mode="NumericPages" />
    </asp:DataGrid>
</div>

